

					<!-- Block manufacturers module -->
					<?php $data=$this->requestAction('/manufactories/getCat');?>
<div id="manufacturers_block_left" class="block blockmanufacturer">
	<h4><a title="Manufacturers">Manufacturers</a></h4>
	<div class="block_content">
			
			<select id="manufacturer_list" onchange="window.location='<?php echo SITE_URL?>cars/bycat/'+this.value">
				<?php $select=''; 
					if(!isset($cid))$select='selected="selected"';
				?>
				<option <?php echo $select?> value="0">All manufacturers</option>
				<?php foreach($data as $k=>$v){
					$select='';
					if(isset($cid) && $v['Manufactory']['id']==$cid)$select='selected="selected"';
				?>					
				<option <?php echo $select?> value="<?php echo $v['Manufactory']['id']?>"><?php echo $v['Manufactory']['name']?></option>	
				<?php }?>							
			</select>
		
		</div>
</div>
<!-- /Block manufacturers module --><!-- MODULE Block best sellers -->
<div id="best-sellers_block_right" class="block products_block">
	<h4><a>Random Cars</a></h4>
	<div class="block_content">
	<?php $data=$this->requestAction('/cars/getRandom');?>
		<ul>
		<?php foreach($data as $k=>$v){?>
			<li><?php echo $k+1?><a href="<?php echo SITE_URL.'/cars/view/'.$v['Car']['id']?>" title="<?php echo $v['Manufactory']['name'].' '.$v['Car']['serie'].' '.$v['Car']['year']?>"><?php echo $v['Manufactory']['name'].' '.$v['Car']['serie'].' '.$v['Car']['year']?></a></li>
		<?php }?>
		</ul>
	
	</div>
</div>
<!-- /MODULE Block best sellers -->
